package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "verification_codes")
public class RcVerificationCodes implements Serializable {
    @Id
    private Integer id;

    @Id
    private String region;

    @Id
    private String phone;

    @Column(name = "sessionId")
    private String sessionid;

    private String token;

    @Column(name = "createdAt")
    private Date createdat;

    @Column(name = "updatedAt")
    private Date updatedat;

    private static final long serialVersionUID = 1L;

    public RcVerificationCodes(Integer id, String region, String phone, String sessionid, String token, Date createdat, Date updatedat) {
        this.id = id;
        this.region = region;
        this.phone = phone;
        this.sessionid = sessionid;
        this.token = token;
        this.createdat = createdat;
        this.updatedat = updatedat;
    }

    public RcVerificationCodes() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return region
     */
    public String getRegion() {
        return region;
    }

    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return sessionId
     */
    public String getSessionid() {
        return sessionid;
    }

    /**
     * @param sessionid
     */
    public void setSessionid(String sessionid) {
        this.sessionid = sessionid == null ? null : sessionid.trim();
    }

    /**
     * @return token
     */
    public String getToken() {
        return token;
    }

    /**
     * @param token
     */
    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    /**
     * @return createdAt
     */
    public Date getCreatedat() {
        return createdat;
    }

    /**
     * @param createdat
     */
    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    /**
     * @return updatedAt
     */
    public Date getUpdatedat() {
        return updatedat;
    }

    /**
     * @param updatedat
     */
    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }
}